﻿@{
    ViewBag.Title = "Tour du lịch";
}
@using G15_Agent.Helpers
@model G15_Agent.Models.ViewModels.TravelSearchViewModel
           
@section PageScripts
{
    <Style type="text/css">
        label
        {
            width: 110px;
            margin-left: 5px;
            text-align: right;
        }
    </Style>
}
<div id="error-message">@ViewBag.Error</div>
<div class="accordion">
    <h3>Tìm kiếm nhanh</h3>
    <div>
        @using (Html.BeginForm("TravelList", "Travel", FormMethod.Post, new { @class = "form-inline"}))
        {
            @Html.Hidden("isAdvance", false)
            <fieldset>
                <legend>Thông tin tìm kiếm tour du lịch</legend>
                <div class="control-group">
                    @Html.LabelFor(m => m.loaiTour, new { @class = "control-label" })
                    @Html.DropDownListFor(m => m.loaiTour, Model.dsLoaiTour, new { @class = "control" })
                </div>
                <hr />
    
                <div id="place" class="control-group">
                    @Html.LabelFor(m => m.diemDi, new { @class = "control-label" })
                    @Html.TextBoxFor(m => m.diemDi, new { @class = "control" })                    
                </div>                
            </fieldset>
            
            <input type="submit" value="Tìm kiếm" class="btn btn-primary"/>
        }
    </div>
    <h3>Tìm kiếm nâng cao</h3>
    <div>
        @using (Html.BeginForm("TravelList", "Travel", FormMethod.Post, new { @class = "form-inline" }))
        {
            @Html.Hidden("isAdvance", true)
            <fieldset>
                <legend>Tiêu chí về thời gian</legend>
                <div class="control-group">
                    @Html.LabelFor(m => m.ngayDi, new { @class = "control-label" })
                    @Html.EditorFor(m => m.ngayDi)

                    @Html.LabelFor(m => m.ngayVe, new { @class = "control-label" })
                    @Html.EditorFor(m => m.ngayVe)
                </div>
            </fieldset>
            <fieldset>
                <legend>Tiêu chí về giá</legend>
                <div class="control-group">
                    @Html.LabelFor(m => m.giaMin, new { @class = "control-label" })
                    @Html.EditorFor(m => m.giaMin)

                    @Html.LabelFor(m => m.giaMax, new { @class = "control-label" })
                    @Html.EditorFor(m => m.giaMax)
                </div>
            </fieldset>
            <fieldset>
                <legend>Tiêu chí lộ trình</legend>
                <div class="control-group">
                    @Html.LabelFor(m => m.diaDiem, new { @class = "control-label" })
                    @Html.EditorFor(m => m.diaDiem)                    
                </div>
            </fieldset>
            
            <input type="submit" value="Tìm kiếm" class="btn btn-primary"/>
        }
    </div>
</div>
